package com.atguigu.yygh.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 主启动类
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //取消数据库自动配置,因为用不到数据库连接
@EnableDiscoveryClient
@ComponentScan(value = "com.atguigu.yygh") //扫描全局异常处理类的信息

public class SmsMainStarter {
    public static void main(String[] args) {
        SpringApplication.run(SmsMainStarter.class,args);
    }
}
